#define _CRT_SECURE_NO_WARNINGS 1

//#include"RBTree.h"
#include"myMap.h"
#include"mySet.h"
struct KeyOfT
{
	int operator()(int a)
	{
		return a;
	}
};


int main()
{

	
	mySet<int> t;
	//t[1] = 1;
	//t[13] = 13;
	//t[10] = 10;
	//t[19] = 19;
	//t[-1] = -1;
	t.insert(1);
	t.insert(10);
	t.insert(122);
	t.insert(16);
	t.insert(15);
	t.insert(-1);
	for (auto e : t)
	{
		cout << e<<" ";
	}

	mySet<int>::iterator it = t.end();
	//=cout << *it;
	cout << endl;
	while (it != t.begin())
	{
		--it;
		cout << (*it) << " ";

	}
	//it++;

	//t.Erase("bf");
	//AVLTreeNode<string, int>* Node = t.Find("a");
	//cout << Node->_kv.second << endl;
	//t.InOrder();
	return 0;
}